package com.chii.color.client;


import com.chii.color.client.impl.UserClientFallback;
import com.chii.color.po.ResponeInfo;
import com.chii.color.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "sc-user", fallback = UserClientFallback.class)
public interface UserClient {

    @RequestMapping(value = "/getUserByUsername/{username}", method = RequestMethod.GET)
    ResponeInfo<User> getUserByUsernameFromUser(@PathVariable(value = "username") String username);
}